<script language="javascript" src="js/rAlertb.js"></script>
<script language="javascript">
function login(id) {
		rAlert("login.php" , null, " 班尼頓寫真 [會員登入] ",600, 400);
}
function rAlert_login_success()
{
	rClose();
	//document.location = 'index.php';
	document.location.reload();
}
</script>
<?php if ($GLOBALS['APP_INSTANCE']->isAccessFromPC()):?>
<div id="right_ad" ><!-- star #right_ad //-->
		<span class="close_ad"><img src="images/close.gif" width="13" height="13" /></span>
        <div class="right_ad-a"> <img src="images/login.gif"  /></div>
       <?php if ( $GLOBALS['PAGE_DATA_MEM_HAS_LOGIN']):?> 
       <div class="right_ad-a2">
    <p>歡迎您！<?php echo $GLOBALS['PAGE_DATA_MEM_LOGIN_NAME'];?></p>
    <p><a href="logout.php">登出</a></p>
     </div>
		<?php else:?>
		<div class="right_ad-a2"> <a href="#" onclick="javascript:login(1118);return false;"><img src="images/loginb.gif"  /></a></div>
		
	<?php endif;?>
  <div class="right_ad-b"> <a href="https://www.facebook.com/benettonphotograph01?sk=wall" target="_blank"><img src="images/link-fb.gif" width="120" height="50" /></a></div>
  <div class="right_ad-b"> <a href="http://benettontw.pixnet.net/blog" target="_blank"><img src="images/link-blog.gif" width="120" height="50" /></a></div>
  <div class="right_ad-d2"></div>
  <div class="right_ad-d"> 
  <a href="working.php"><img src="images/link-1.gif"  /></a>
  <a href="people.php"><img src="images/link-2.gif"  /></a>
  <a href="products.php"><img src="images/link-3.gif" /></a>
  <a href="news.php"><img src="images/link-4.gif"  /></a>
  <a href="page-content.php?id=3"><img src="images/link-5.gif"  /></a>
  </div>
  <div class="right_ad-d2"></div>
  <div class="right_ad-e">
  <?php 
  if ( $GLOBALS['PAGE_DATA_FLOAT_WINDOW_AD'] ) {
  	if ( $GLOBALS['PAGE_DATA_FLOAT_WINDOW_AD']['url']) {
  		$url = Util::enhanceUrl($GLOBALS['PAGE_DATA_FLOAT_WINDOW_AD']['url']);
  		printf('<a href="%s"><img src="img/float_window_ad/%s" /></a>',$url,$GLOBALS['PAGE_DATA_FLOAT_WINDOW_AD']['img']);
  	}else{
  		printf('<img src="img/float_window_ad/%s" />',$GLOBALS['PAGE_DATA_FLOAT_WINDOW_AD']['img']);
  	}
  }
  ?>
  </div>
  <div class="right_ad-f">
<a href="menberc.php" ><img src="img/r-ad-1.gif" /></a>
</div>
</div>

</div><!-- star #right_ad //-->
  <?php endif;?>